package com.fwtai.api;

import com.fwtai.bean.PageFormData;
import com.fwtai.datasource.DaoHandle;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 资料文档相关
 * @作者 田应平
 * @版本 v1.0
 * @创建时间 2021-08-10 11:19:15
 * @QQ号码 444141300
 * @Email service@yinlz.com
 * @官网 <url>http://www.fwtai.com</url>
*/
@Repository
public class ApiOrderDao{

  private final DaoHandle dao;

  public ApiOrderDao(final DaoHandle dao){
    this.dao = dao;
  }

  public List<Map<String,Object>> getListOrder(final PageFormData formData){
    return dao.queryForListMap("api_order.getListOrder",formData);
  }

  public int delById(final PageFormData formData){
    return dao.execute("api_order.delById",formData);
  }
}